package com.example.demo.mapper;

import com.example.demo.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Mapper
@Repository
public interface StaffMapper {

    //根据商店ID找所有员工
    List<Staff> selectStaffAllByStore(Integer shopID);
    List<Staff> selectAllStaffById(Integer staffId);

    List<Staff> selectAllStaffByName(String staffName);
    public void insertStaff(String name,String mail, String pos,Integer shopID);
    public void updateStaffById(Integer staffId,String name,String mail, String pos,Integer shopID);
    public void updateStaffByName(String name,String mail, String pos,Integer shopID);
    public void deleteStaffById(Integer staffId);
    public void deleteStaffByName(String name);
}
